//-----------------------------------------------------------------------
// <copyright file=" SysUser.cs" company="xxxx Enterprises">
// * Copyright (C) 2019 xxxx Enterprises All Rights Reserved
// * version : 4.0.30319.42000
// * author  : linxd
// * FileName: SysUser.cs
// * history : Created by T4 09/19/2019 09:33:18
// </copyright>
//-----------------------------------------------------------------------
using System;

using Admin.Common;

namespace Admin.Model
{
    /// <summary>
    /// SysUser Entity Model
    /// </summary>   
    [Serializable]
	[MyTable("sys_user")]
    public class SysUser
    {
      /// <summary>
        /// 用户ID
        /// </summary>
        public int Id { get; set; }
   
        /// <summary>
        /// 部门ID
        /// </summary>
        public int DeptId { get; set; }
   
        /// <summary>
        /// 登录账号
        /// </summary>
        public string Account { get; set; }
   
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string Name { get; set; }
   
        /// <summary>
        /// 用户类型（00系统用户）
        /// </summary>
        public string Type { get; set; }
   
        /// <summary>
        /// 用户邮箱
        /// </summary>
        public string Email { get; set; }
   
        /// <summary>
        /// 手机号码
        /// </summary>
        public string Phone { get; set; }
   
        /// <summary>
        /// 用户性别（0男 1女 2未知）
        /// </summary>
        public string Sex { get; set; }
   
        /// <summary>
        /// 头像路径
        /// </summary>
        public string Avatar { get; set; }
   
        /// <summary>
        /// 密码
        /// </summary>
        public string Pwd { get; set; }
   
        /// <summary>
        /// 盐加密
        /// </summary>
        public string Salt { get; set; }
   
        /// <summary>
        /// 帐号状态（0正常 1停用）
        /// </summary>
        public string Status { get; set; }
   
        /// <summary>
        /// 删除标志（0代表存在 2代表删除）
        /// </summary>
        public string DelFlag { get; set; }
   
        /// <summary>
        /// 最后登陆IP
        /// </summary>
        public string LoginIp { get; set; }
   
        /// <summary>
        /// 最后登陆时间
        /// </summary>
        public DateTime LoginDate { get; set; } = DateTime.Now;

        /// <summary>
        /// 创建者
        /// </summary>
        public string CreateBy { get; set; }
   
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新者
        /// </summary>
        public string UpdateBy { get; set; }
   
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
